DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Write Method / Write(Byte[]) Method

Byte Array to write image data to

Example

In This Topic
    Write(Byte[]) Method
    In This Topic
    Write the image data to a Byte Array
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByRef Array() As System.Byte _
    ) 
    public void Write( 
       out System.byte[] Array
    )

    Parameters

    Array

    Byte Array to write image data to

    Remarks
    Data may be read back by the corresponding Read method.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    byte[] dicomData;
    image.Write(out dicomData); 
                        
    // Example: write the byte array to a new DICOM file
    File.WriteAllBytes("output_image.dcm", dicomData);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also